package net.myjung.model.editor;

import net.myjung.model.BaseObject;
import net.myjung.model.MdlField;
import net.myjung.model.annotation.MdlAttribute;
import net.myjung.model.annotation.MdlElement;

@SuppressWarnings("serial")
public class FieldInfo extends BaseObject {
	@MdlAttribute
	private String name;
	@MdlAttribute
	private String singular;
	@MdlAttribute
	private String type;
	@MdlAttribute
	private String generic;
	@MdlAttribute
	private String getter;
	@MdlAttribute
	private String setter;
	@MdlAttribute
	private String adder;
	@MdlAttribute
	private String remover;
	@MdlElement
	private MdlField field;
	public FieldInfo() {
		super();
	}
	public FieldInfo(String name, String type, String getter, String setter) {
		super();
		this.name = name;
		this.type = type;
		this.getter = getter;
		this.setter = setter;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSingular() {
		return singular;
	}
	public void setSingular(String singular) {
		this.singular = singular;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getGeneric() {
		return generic;
	}
	public void setGeneric(String generic) {
		this.generic = generic;
	}
	public String getGetter() {
		return getter;
	}
	public void setGetter(String getter) {
		this.getter = getter;
	}
	public String getSetter() {
		return setter;
	}
	public void setSetter(String setter) {
		this.setter = setter;
	}
	public String getAdder() {
		return adder;
	}
	public void setAdder(String adder) {
		this.adder = adder;
	}
	public String getRemover() {
		return remover;
	}
	public void setRemover(String remover) {
		this.remover = remover;
	}
	public MdlField getField() {
		return field;
	}
	public void setField(MdlField field) {
		this.field = field;
	}
}
